//
//  SelectCircleView.h
//  OrderSeat
//
//  Created by wangwei on 13-10-23.
//  Copyright (c) 2013年 wangwei. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol SelectCircleViewDelegate

@optional
- (void)selectCircleFinished:(NSDictionary *)selectedData;

@end

@class SelectCircleDataSource;
@interface SelectCircleView : UIView

@property(nonatomic, strong)UITableView *areaTable;
@property(nonatomic, strong)UITableView *circleTable;
@property(nonatomic, strong)SelectCircleDataSource *dataSource;
@property(nonatomic, weak)id<SelectCircleViewDelegate> delegate;

@property(nonatomic, assign)BOOL    isLoaded;
@property(nonatomic, assign)CGFloat viewHeight;

- (void)resetAttributesWithTop:(CGFloat)height;
- (void)showOrVisible;
- (void)hidden;

@end

@interface SelectCircleDataSource : BaseDataSource<UITableViewDataSource,UITableViewDelegate>

@property(nonatomic, strong)SelectCircleView *view;
@property(nonatomic, strong)NSMutableArray *areaList;
@property(nonatomic, strong)NSMutableArray *circleList;

- (id)initWithView:(id)view;

@end
